package com.example.api.dao;

import com.example.api.model.entity.Code;

import java.util.List;

public interface CodeDao {

    int deleteByPrimaryKey(String email);

    int insert(Code record);

    int insertSelective(Code record);

    Code selectByPrimaryKey(String email);

    int updateByPrimaryKeySelective(Code record);

    int updateByPrimaryKey(Code record);

    Code findByEmailAndValue(String email, String value);

    List<Code> findByExpireTime();

    int deleteByEmailAndValue(String email, String value);

}